package com.hooya.fa.eu.biz.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hooya.fa.eu.api.bo.SkuPriceBO;
import com.hooya.fa.eu.biz.dao.entity.TempKcjlDailyHy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description 1
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2025/3/5
 * @Version 1.1.0
 */
@Mapper
public interface TempKcjlDailyHyMapper extends BaseMapper<TempKcjlDailyHy> {

    /**
     * 根据sku与排除发票号获取hy列表
     *
     * @param sku  sku
     * @param date 日期
     * @return list
     */
    List<SkuPriceBO> getListByCondition(@Param("sku") String sku, @Param("date") String date);

	@Select("SELECT cpbh, place, sl, belongs, hy, htrq FROM fa_eu.temp_kcjl_daily_hy WHERE date = #{date}")
	List<TempKcjlDailyHy> getHyData(String date);

	void batchInsert(@Param("data")List<TempKcjlDailyHy> data);
}
